﻿@{
    ViewBag.Title = "供应商列表";
    Layout = "~/Views/Shared/_LayoutList.cshtml"; 
}
@(       
 Html.DWZGridFor<Resto.CostControl.Core.Supplier>()
    .Title("供应商列表")
    .Action(@Url.Action("Index"))
    .Columns(col =>
    {
        col.Bind(e => e.Id).IsKey();
        col.Bind(e => e.ShortName).Width(60).AsQuery();
        col.Bind(e => e.Name).Width(160).AsQuery().Align(FlexiGridAlign.Left);
        col.Bind(e => e.ContactPserson).Width(60);
        col.Bind(e => e.ContactTel).Width(100);
        @*col.Bind(e => e.Address).Width("auto").Align(FlexiGridAlign.Left);*@
        col.Bind(e => e.UpdateUser).Width(60);
        col.Bind(e => e.UpdateDate).Width(70).DateFormat("yyyy-MM-dd");
        col.Bind(e => e.Id, "操作", 120).Sortable(false)
            .Template(Url.EditLink("Edit", "编辑供应商")
            + Url.DeleteLink("Delete", "${Name}"));
    })
    .Buttons(btn =>
    {
        btn.Bind("Add", "新建供应商", FlexiGridButtonType.Add).Action(@Url.Action("Edit")).OnPress("OpenFormDailog");
    })
)
